package java_variables.instantiation;

public class PointTest {

	public static void main(String[] args) {
		
		Point p1, p2, p3;
		
		p1 = new Point();
		p2 = new Point();
		p3 = new Point();
		
		p1.x = 1;
		p1.y = 2;
		
		p2.x = 10;
		p2.y = 20;
		
		p3.x = 100;
		p3.y = 200;
		
		System.out.println("p1.x = " + p1.x);
		System.out.println("p1.y = " + p1.y);
		
		System.out.println("p2.x = " + p2.x);
		System.out.println("p2.y = " + p2.y);
		
		System.out.println("p3.x = " + p3.x);
		System.out.println("p3.y = " + p3.y);
	}

}
